<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Gprice extends Model
{
	protected $table = 'goods_price';

	protected $primaryKey = 'id';

	public $timestamps = true;

	public function findGoods()
	{
		return $this->belongsTo('App\Model\Goods','gid');
	}

    public function findSalePromotion()
    {
        return $this->hasMany('App\Model\Sale_promotion', 'pid');
    }
}
